<link rel="stylesheet" href="<?php echo Html::cssUrl('redmond.datepick.css') ?> " type="text/css" media="screen" />
<script type="text/javascript" src="<?php echo Html::jsUrl('jquery.datepick.js') ?>"></script>
<script type="text/javascript" src="<?php echo Html::jsUrl('jquery.datepick-vi.js') ?>"></script>
<script type="text/javascript">
    $(function() {
	$('#popupDatepicker').datepick();
	$('#inlineDatepicker').datepick({onSelect: showDate});

});

function showDate(date) {
	alert('The date chosen is ' + date);
}
</script>
<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'giao-vien-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'Ho'); ?>
		<?php echo $form->textField($model,'Ho',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->error($model,'Ho'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Ten'); ?>
		<?php echo $form->textField($model,'Ten',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->error($model,'Ten'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'GioiTinh'); ?>
		<?php echo $form->radioButton($model,'GioiTinh'); ?>
		<?php echo $form->error($model,'GioiTinh'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'NgaySinh'); ?>
		<?php echo $form->textField($model,'NgaySinh',array('type'=>'text','id'=>'popupDatepicker', 'readonly'=>'readonly')); ?>
		<?php echo $form->error($model,'NgaySinh'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'NoiSinh'); ?>
		<?php echo $form->textField($model,'NoiSinh',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->error($model,'NoiSinh'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'DanToc'); ?>
		<?php echo $form->textField($model,'DanToc',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->error($model,'DanToc'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'TrinhDo'); ?>
		<?php echo $form->textField($model,'TrinhDo',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->error($model,'TrinhDo'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'ChuyenMon'); ?>
		<?php echo $form->textField($model,'ChuyenMon',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->error($model,'ChuyenMon'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'DiaChi'); ?>
		<?php echo $form->textField($model,'DiaChi',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->error($model,'DiaChi'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'DiDong'); ?>
		<?php echo $form->textField($model,'DiDong'); ?>
		<?php echo $form->error($model,'DiDong'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'ChucVu'); ?>
		<?php echo $form->textField($model,'ChucVu',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->error($model,'ChucVu'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Username'); ?>
		<?php echo $form->textField($model,'Username',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->error($model,'Username'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'TrangThai'); ?>
		<?php echo $form->textField($model,'TrangThai'); ?>
		<?php echo $form->error($model,'TrangThai'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->